<meta property="og:url" content="http://<?php echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>"/>
<meta property="og:site_name" content="weebeet - plateforme communautaire pour parieurs"/>
<meta property="fb:admins" content="100001527053002"/>
<meta property="fb:app_id" content="216226005086186"/>
<?php
switch ($get_param[0]) {
	case 'ticket':
		$ticket_auteur = getTicketAuteurName($_GET['id']);
		$ticket_cote = getTicketCoteTotale($_GET['id']);
		$ticket_nbLigne = getTicketNbLigne($_GET['id']);
		?>
		<meta property="og:title" content="<?php echo $ticket_auteur; ?> vous propose un ticket @<?php echo $ticket_cote; ?>"/>
		<meta property="og:type" content="article"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/ticket.png"/>
		<meta property="og:description" content="Une côte de <?php echo $ticket_cote; ?> obtenu avec  <?php echo $ticket_nbLigne; ?> match(s) "/>
		<?php
		break;
	case 'status':
		$statut_auteur = getStatutAuteurName($_GET['id']);
		$statut_content = getStatutContent($_GET['id']);
		?>
		<meta property="og:title" content="<?php echo $statut_auteur; ?>"/>
		<meta property="og:type" content="article"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/statut.png"/>
		<meta property="og:description" content="<?php echo $statut_content; ?>"/>
		<?php
		break;
	case 'rencontre':
		$rencontre_home = getRencontreHomeTeamName($_GET['id']);
		$rencontre_away = getRencontreAwayTeamName($_GET['id']);
		$rencontre_sport = getRencontreSportName($_GET['id']);
		$rencontre_lieu = getRencontreLieuName($_GET['id']);
		$rencontre_edition = getRencontreEditionName($_GET['id']);
		$rencontre_date = date_FR(getRencontreDate($_GET['id']));
		$rencontre_heure = substr(getRencontreHeure($_GET['id']), 0, 5);
		?>
		<meta property="og:title" content="<?php echo $rencontre_home; ?> - <?php echo $rencontre_away; ?>"/>
		<meta property="og:type" content="game"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/rencontre.png"/>
		<meta property="og:description" content="<?php echo $rencontre_sport ; ?> - <?php echo $rencontre_lieu ; ?> - <?php echo $rencontre_edition; ?> - Le <?php echo $rencontre_date; ?> à <?php echo $rencontre_heure; ?>"/>
		<?php
		break;
	case 'edition':
		$edition_competition = getEditionCompetitionName($_GET['id']);
		$edition_annee = getEditionAnnee($_GET['id']);
		?>
		<meta property="og:title" content="<?php echo $edition_competition; ?> - <?php echo $edition_annee; ?>"/>
		<meta property="og:type" content="sports_league"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/edition.png"/>
		<meta property="og:description" content="Partagez vos pronostics sur toutes les rencontres de <?php echo $edition_competition; ?> - <?php echo $edition_annee; ?> sur www.weebeet.com"/>
		<?php
		break;
	case 'sport':
		$sport_name = getSportName($_GET['id']);
		?>
		<meta property="og:title" content="<?php echo $sport_name; ?>"/>
		<meta property="og:type" content="sport"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/<?php echo $sport_name; ?>.png"/>
		<meta property="og:description" content="Partagez vos pronostics sur toutes les rencontres de <?php echo $sport_name; ?> sur www.weebeet.com"/>
		<?php
		break;
	case 'conseiller':
		$conseiller_name = getConseillerName($_GET['id']);
		?>
		<meta property="og:title" content="<?php echo $conseiller_name; ?>"/>
		<meta property="og:type" content="author"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/avatar.png"/>
		<meta property="og:description" content="Retrouvez les pronostics de <?php echo $conseiller_name; ?> sur www.weebeet.com"/>
		<?php
		break;
	case 'p':
		$title = $wpdb->get_var($wpdb->prepare("SELECT post_title FROM wb_posts WHERE post_type='post' AND post_status='publish' AND id='%d' ",$_GET['p']));
		$excerpt = $wpdb->get_var($wpdb->prepare("SELECT post_excerpt FROM wb_posts WHERE post_type='post' AND post_status='publish' AND id='%d' ",$_GET['p']));
		?>
		<meta property="og:title" content="<?php echo $title; ?>"/>
		<meta property="og:type" content="author"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/article.png"/>
		<meta property="og:description" content="<?php echo $excerpt; ?>"/>
		<?php
		break;
	default:
		?>
		<meta property="og:title" content="Weebeet - Parions Ensemble"/>
		<meta property="og:type" content="website"/>
		<meta property="og:image" content="<?php echo get_bloginfo('template_url');?>/images/interface/fb_like/weebeet.png"/>
		<meta property="og:description" content="La plateforme communautaire indispensable à tous les parieurs."/>
		<?php
		break;
}